package com.info.zhiduoduo.core.configs.Redis;

public interface RedisKey {

	String PREFIX = "ZDD:";

	String USER_TOKEN = PREFIX + "USER_TOKEN:";
	String ODD_JOB_ACCOUNT_TOKEN = PREFIX + "ODD_JOB_ACCT_TOKEN:";
	String WX_ACCESS_TOKEN = PREFIX + "WX_ACCESS_TOKEN:";
	String QUARTER_BUSINESS_GROSS_KEY = PREFIX + "QUARTER_BUSINESS_GROSS:";
	String MONTH_BUSINESS_GROSS_KEY = PREFIX + "MONTH_BUSINESS_GROSS:";
	String COMPANY_MERCHANT_BALANCE_KEY = PREFIX + "COMPANY_MERCHANT_BALANCE:";
	String RECHARGE_VERIFY_CODE_KEY = PREFIX + "RECHARGE_VERIFYCODE_KEY:";
	String OFFLINE_RECHARGE_VERIFY_CODE_KEY = PREFIX + "OFFLINE_RECHARGE_VERIFYCODE_KEY:";

	String CREATE_INVOICE_LOCK_KEY = PREFIX + "CREATE_INVOICE_LOCK_KEY";
	String ZDD_PROJECT_PUBLISHING_LOCK_KEY = PREFIX + "ZDD_PROJECT_PUBLISHING_LOCK:";
	String ZDD_PROJECT_PAYING_LOCK_KEY = PREFIX + "ZDD_PROJECT_PAYING_LOCK:";
	String ZDD_GENERAL_PROJECT_DELIVERY_LOCK_KEY = PREFIX + "PROJECT_DELIVERY_LOCK_KEY:";
	String ZDD_COMPANY_PAY_PASSWORD_LOCK_KEY = PREFIX + "COMPANY_PAY_PASSWORD:";

	static String genUserTokenKey(String token) {
		return USER_TOKEN + token;
	}

	static String genWxAccessTokenKey(String appid) {
		return WX_ACCESS_TOKEN + appid;
	}

	static String genRechargeVerifyCodeKey(int recharngeid) {
		return RECHARGE_VERIFY_CODE_KEY + recharngeid;
	}

	static String genOfflineVerifyCodeKey(int recharngeid) {
		return OFFLINE_RECHARGE_VERIFY_CODE_KEY + recharngeid;
	}

	static String genQuarterBusinessGrossKey(int year) {
		return QUARTER_BUSINESS_GROSS_KEY + year;
	}
	static String genMonthBusinessGrossKey(int year) {
		return MONTH_BUSINESS_GROSS_KEY + year;
	}

	static String genCompanyMerchantBalanceKey(int compid) {
		return COMPANY_MERCHANT_BALANCE_KEY + compid;
	}

	static String genZDDProjectPublishingLockKey(int projectid) {
		return ZDD_PROJECT_PUBLISHING_LOCK_KEY + projectid;
	}
	static String genZDDProjectPayingLockKey(int projectid) {
		return ZDD_PROJECT_PAYING_LOCK_KEY + projectid;
	}

	static String getOddJobAccountKey(String token) {
		return ODD_JOB_ACCOUNT_TOKEN + token;
	}
	static String genCompGeneralProjectDeliveryKey(int compid) {
		return ZDD_GENERAL_PROJECT_DELIVERY_LOCK_KEY + compid;
	}
	static String genCompanyPapPasswordKey(int compid) {
		return ZDD_COMPANY_PAY_PASSWORD_LOCK_KEY + compid;
	}
}
